package com.iflytek.aiui.demo.chat.repository.config;

import java.util.Objects;

/**
 * 设置
 */

public class Settings {
    public boolean wakeup;
    public boolean tts;
    public boolean saveAIUILog;

    public int bos;
    public int eos;

    public boolean debugLog;
    public boolean saveDebugLog;

    public String appid;
    public String key;
    public String scene;

    public String accent;

    public boolean translation;
    public String translationScene;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof Settings) {
            Settings other = (Settings) obj;
            return other.wakeup == wakeup &&
                    other.tts == tts &&
                    other.translation == translation &&
                    other.saveAIUILog == saveAIUILog &&
                    other.debugLog == debugLog &&
                    other.saveDebugLog == saveDebugLog &&
                    other.bos == bos &&
                    other.eos == eos &&
                    Objects.equals(other.appid, appid) &&
                    Objects.equals(other.key, key) &&
                    Objects.equals(other.scene, scene) &&
                    Objects.equals(other.accent, accent) &&
                    Objects.equals(other.translationScene, translationScene);

        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return Objects.hash(wakeup, tts, translation, saveAIUILog, debugLog, saveDebugLog, bos, eos,
                appid, key, scene, accent, translationScene);
    }
}
